//
//  Attraction_trip_tags.m
//  NineGroupProject
//
//  Created by dllo on 15/12/28.
//  Copyright © 2015年 lushan. All rights reserved.
//

#import "Attraction_trip_tags.h"
#import "TravelDetailModel.h"
@implementation Attraction_trip_tags
-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}

-(void)setValue:(id)value forKey:(NSString *)key{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"attraction_contents"]) {
        NSMutableArray *array = [NSMutableArray array];
        for (NSMutableDictionary *dic in value) {
            TravelDetailModel *attraction_contents = [[TravelDetailModel alloc] init];
            [attraction_contents setValuesForKeysWithDictionary:dic];
            [array addObject:attraction_contents];
        }
        self.attraction_contents = [NSMutableArray arrayWithArray:array];
    }
}

@end
